﻿@model RelaxMenuDataContract
@using www.SService
@{
    ViewBag.Title = "Cập nhật menu";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<div class="content">
    <fieldset style="width: 99%; height: auto; overflow: hidden; border: 1px solid #008080;">
        <legend>Thêm mới danh mục quảng cáo</legend>
        <div class="clear"></div>
        @using (Html.BeginForm("EditMenu", "Menu", FormMethod.Post, new { id = "frmAdd" }))
        {
            @Html.Hidden("id",Model.Id)
            <div class="row">
                <div class="col-left">Tên Menu</div>
                <div class="col-right">@Html.TextBox("txtName", Model.Name, new { @class = "textbox",@readonly="true" })
                    <span class="red">*</span>
                </div>
            </div>
            <div class="row">
                <div class="col-left">Liên kết</div>
                <div class="col-right">@Html.TextBox("txtLink", Model.Link, new { @class = "textbox" })<span class="red">*</span></div>
            </div>
            <div class="row">
                <div class="col-left">Kiểu liên kết</div>
                <div class="col-right">@Html.DropDownList("LinkType", null, new { @class = "combobox" })<span class="red">*</span></div>
            </div>
             <div class="row">
                <div class="col-left">Thứ tự</div>
                <div class="col-right">@Html.TextBox("txtOrd", Model.Ord, new { @class = "textbox",onkeyup="javascript:checkNumber(this);" })</div>
            </div>
            <div class="row">
                <div class="col-left">Trạng thái</div>
                <div class="col-right">@Html.CheckBox("chkActive",Model.Active==1)</div>
            </div>
            <div class="row">
                <div class="col-left"></div>
                <div class="col-right">
                    <input type="submit" id="Submit1" class="button" name="submit1" value="Thêm mới" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Html.ActionLink("Quay lại", "Index", "Menu")
                </div>
            </div>
        }

    </fieldset>
</div>

